CREATE TABLE [dbo].[Brands]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[Name] [nvarchar] (50) COLLATE Cyrillic_General_CI_AS NOT NULL,
[Description] [nvarchar] (max) COLLATE Cyrillic_General_CI_AS NULL,
[Type] [int] NOT NULL CONSTRAINT [DF_Brands_Type] DEFAULT ((0)),
[Active] [bit] NOT NULL CONSTRAINT [DF_Brands_Active] DEFAULT ((1)),
[Stamp] [datetime] NOT NULL CONSTRAINT [DF_Brands_Stamp] DEFAULT (getdate()),
[LogoPath] [varchar] (500) COLLATE Cyrillic_General_CI_AS NULL,
[SmallLogoPath] [varchar] (500) COLLATE Cyrillic_General_CI_AS NULL
)
ALTER TABLE [dbo].[Brands] ADD
CONSTRAINT [FK_Brands_BrandTypes] FOREIGN KEY ([Type]) REFERENCES [dbo].[BrandTypes] ([Id])
ALTER TABLE [dbo].[Brands] ADD 
CONSTRAINT [PK_Brands] PRIMARY KEY CLUSTERED  ([Id])
GO
